package com.eddie.adapter.objectadapter;

/**
 * @author Eddie
 * @date 2022/07/28 12:28
 **/
public class Client {
    public static void main(String[] args) {
        System.out.println("类适配器模式");
        Phone phone = new Phone();
        phone.charging(new VoltageAdapter(new Voltage220V()));
    }
}
